package com.ilovetolearn.controller
{
	import com.adobe.cairngorm.control.FrontController;
	import com.ilovetolearn.command.InitializeCommand;
	import com.ilovetolearn.command.InitializeSentenceCommand;
	import com.ilovetolearn.event.InitializeEvent;
	import com.ilovetolearn.event.InitializeSentenceEvent;

	public class Controller extends FrontController
	{
		public function Controller()
		{
			super();
			initialize();
		}

		private function initialize():void
		{
			//初始化用户信息和课程信息
			this.addCommand(InitializeEvent.INITIALIZE_EVENT, InitializeCommand, true);
			//初始化语句信息
			this.addCommand(InitializeSentenceEvent.INITIALIZESENTENCE__EVENT, InitializeSentenceCommand, true);
		}
	}
}